<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Datos</title>
    </h:head>
    <h:body>
        <h:form>
                
    <p:sheet value="#{tableBean.cars}" var="car" scrollHeight="300">
        <f:facet name="caption">
            List of Cars
        </f:facet>

        <p:column headerText="Model" style="width:125px" sortBy="#{car.model}">
            <h:inputText value="#{car.model}" />
        </p:column>

        <p:column headerText="Year" style="width:125px" sortBy="#{car.year}">
            <h:inputText value="#{car.year}" onkeypress="return restrict(event)"/>
        </p:column>

        <p:column headerText="Manufacturer" style="width:125px" sortBy="#{car.manufacturer}">
            <h:inputText value="#{car.manufacturer}" />
        </p:column>

        <p:column headerText="Color" style="width:125px" sortBy="#{car.color}">
            <h:inputText value="#{car.color}" />
        </p:column>
    </p:sheet>

</h:form>
                    
    </h:body>
</html>
